import javax.xml.transform.*;
import java.io.*;

public class HowToXSLT {
	public static void main(String[] args) {
		try {
			TransformerFactory tFactory = TransformerFactory.newInstance();
			Transformer transformer = tFactory.newTransformer(new javax.xml.transform.stream.StreamSource("Translations/lanacion/xsl/lanacion.xsl"));
			transformer.transform(new javax.xml.transform.stream.StreamSource("Translations/lanacion/tst/transito.xml"), new javax.xml.transform.stream.StreamResult( new FileOutputStream("howto.html")));
		}
		catch (Exception e) {
			e.printStackTrace( );
		}
	}
}